import request from '@/utils/request'

// 下级订货商
export function getNextLevelVender(params) {
  return request({
    url: '/UserActivityApi/nextLevelVender',
    method: 'get',
    params
  })
}

// 会员
export function getNextLevelVenderUser(params) {
  return request({
    url: '/UserActivityApi/nextLevelVenderUser',
    method: 'get',
    params
  })
}

// 团队订单
export function getVenderOrder(params) {
  return request({
    url: '/UserActivityApi/venderOrder',
    method: 'get',
    params
  })
}
// 团队订单详情
export function getVenderOrderDetail(params) {
  return request({
    url: '/DhsApi/venderOrderDetail',
    method: 'get',
    params
  })
}

// 推荐列表
export function getDhsRecommend(params) {
  return request({
    url: '/UserActivityApi/dhsRecommend',
    method: 'get',
    params
  })
}

// 销售奖订单
export function getDhsSaleRewardOrder(params) {
  return request({
    url: '/DhsApi/dhsSaleRewardOrder',
    method: 'get',
    params
  })
}

// 销售奖订单详情
export function getDhsSaleRewardOrderDetail(params) {
  return request({
    url: '/DhsApi/dhsSaleRewardOrderDetail',
    method: 'get',
    params
  })
}
// 订货商品
export function getDhsGoods(params) {
  return request({
    url: '/UserApi/dhs_goods',
    method: 'get',
    params
  })
}
// 团队业绩
export function getDhsYeJi(params) {
  return request({
    url: '/UserActivityApi/dhsYeJi',
    method: 'get',
    params
  })
}
// 团队管理业绩
export function getDhsGlj(params) {
  return request({
    url: '/UserActivityApi/dhsGlj',
    method: 'get',
    params
  })
}
// 团队管理业绩操作
export function getDhsGljDetail(params) {
  return request({
    url: '/DhsApi/dhsGljDetail', // 待调整
    method: 'get',
    params
  })
}
// 出单量排行
export function getDhsOrderRanking(params) {
  return request({
    url: '/UserActivityApi/dhsOrderRanking',
    method: 'get',
    params
  })
}
// 订货商团队订单排行
export function dhsTeamOrderSort(params) {
  return request({
    url: '/dhsApi/dhsTeamOrderSort',
    method: 'get',
    params
  })
}
// 虚拟库存
export function getMyStore(params) {
  return request({
    url: '/UserActivityApi/myStore',
    method: 'get',
    params
  })
}
// 下级虚拟订单
export function getVirtualVenderOrder(params) {
  return request({
    url: '/UserActivityApi/virtualVenderOrder',
    method: 'get',
    params
  })
}
// 我的预存款
export function getDeposit(params) {
  return request({
    url: '/UserActivityApi/dhsDeposit',
    method: 'get',
    params
  })
}

// 兑换预存款
export function depositExchange(params) {
  return request({
    url: '/UserDhsApi/depositExchange',
    method: 'get',
    params
  })
}

// 预存款转赠
export function dhsDeposit(data) {
  return request({
    url: '/DhsApi/dhsDepositDo',
    method: 'post',
    data
  })
}

// 加入购物车  （待移动）
export function addCart(params) {
  return request({
    url: '/ItemApi/addCart',
    method: 'post',
    params
  })
}

// 订货商统计数据
export function dhsPerformanceShow(params) {
  return request({
    url: '/DhsApi/dhsPerformanceShow',
    method: 'get',
    params
  })
}

// 订货商中心
export function getDhsCenterData(params) {
  return request({
    url: '/UserServiceApi/dhs',
    method: 'post',
    params
  })
}

// 挂起订单 插件处理
export function getHangPlug(params) {
  return request({
    url: '/DzUserApi/orderHangPlug',
    method: 'post',
    params
  })
}

// 实体库存订单
export function dhsEntityOrder(data) {
  return request({
    url: '/UserActivityApi/dhsEntityOrder',
    method: 'post',
    data
  })
}

// 实体库存订单-标记发货
export function sendEntityOrder(data) {
  return request({
    url: '/UserActivityApi/sendEntityOrder',
    method: 'post',
    data
  })
}
// 推荐列表 头部接口拆分
export function getDhsRecommendHeader(params) {
  return request({
    url: '/DhsApi/dhsSaleCommon',
    method: 'get',
    params
  })
}
// 设置订货商
export function setUserLowerDhs(data) {
  return request({
    url: '/UserActivityApi/setUserLowerDhs',
    method: 'post',
    data
  })
}
